<!--
 * @Author: luobei luobei@seewintech.com
 * @Date: 2023-02-23 20:43:19
 * @LastEditors: luobei luobei@seewintech.com
 * @LastEditTime: 2023-02-24 15:01:58
 * @FilePath: \ibuilds-web-system\src\views\systemManage\formManage\formDesign\packages\config\number.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div>
    <el-form-item label="占位内容">
      <el-input
        v-model="data.placeholder"
        clearable
        placeholder="占位内容"
      />
    </el-form-item>
    <el-form-item label="最小值">
      <el-input-number
        v-model="data.minRows"
        controls-position="right"
        placeholder="最小值"
      />
    </el-form-item>
    <el-form-item label="最大值">
      <el-input-number
        v-model="data.maxRows"
        controls-position="right"
        placeholder="最大值"
      />
    </el-form-item>
    <el-form-item label="步长">
      <el-input-number
        v-model="data.step"
        controls-position="right"
        placeholder="步长"
      />
    </el-form-item>
    <el-form-item label="数值精度">
      <el-input-number
        v-model="data.precision"
        controls-position="right"
        placeholder="数值精度"
        :min="0"
        :max="10"
      />
    </el-form-item>
    <el-form-item label="开启控制器" label-width="100px">
      <el-switch v-model="data.controls" />
    </el-form-item>
    <el-form-item v-if="data.controls" label="控制器位置" label-width="100px">
      <el-radio v-model="data.controlsPosition" label="">默认</el-radio>
      <el-radio v-model="data.controlsPosition" label="right">右</el-radio>
    </el-form-item>
  </div>
</template>

<script>
  export default {
    name: 'ConfigNumber',
    props: ['data'],
  }
</script>
